#ifndef _TX_ELEMENT_
#define _TX_ELEMENT_

#include "Iw2D.h"
#include "TxMacros.h"

class TxDrawingElement
{
	TX_PROP(bool, visibility, IsVisible)
	TX_PROP_PROT(CIwFVec2, position, Position)
protected:
	CIw2DImage*					sprite;
	CIwFVec2					destinationPoint;
	CIwFVec2					basePoint;
	uint32						movementTimeLeft;
	int64						lastDrawingTime;
	virtual void				initialize();
	void						moveElement();
public:
	virtual						~TxDrawingElement();
	static TxDrawingElement*	createDrawingElement(char* file);
	virtual void				drawElement();
	void						moveToPoint(CIwFVec2 point, uint32 timeMS);
};

#endif